package com.nbcio.demo.domain.vo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nbcio.demo.domain.TestOrderGoods;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.nbcio.common.excel.annotation.ExcelDictFormat;
import com.nbcio.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 订单子表对象 test_order_goods
 *
 * @author nbacheng
 * @date 2025-04-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TestOrderGoods.class)
public class TestOrderGoodsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

            /**
             * 主键
             */
            @ExcelProperty(value = "主键" )
        private Long id;

            /**
             * 商品编码
             */
            @ExcelProperty(value = "商品编码" , converter = ExcelDictConvert.class)
            @ExcelDictFormat(dictType = "test_goods" )
        private String goodCode;

            /**
             * 商品名字
             */
            @ExcelProperty(value = "商品名字" )
        private String goodName;

            /**
             * 价格
             */
            @ExcelProperty(value = "价格" )
        private BigDecimal price;

            /**
             * 数量
             */
            @ExcelProperty(value = "数量" )
        private Long num;

            /**
             * 单品总价
             */
            @ExcelProperty(value = "单品总价" )
        private BigDecimal zongPrice;

            /**
             * 订单ID
             */
            @ExcelProperty(value = "订单ID" )
        private Long mainId;


}
